package dao

import (
	"time"
)

// 这是 FileUploadAndDownload 的全局公开dao对象
var FileUploadAndDownloadDao = fileUploadAndDownloadDao{}

// 这是 file_upload_and_download表 的实体类
type FileUploadAndDownload struct {
	Id        int       `json:"id" form:"id" binding:"id"`
	CreatedAt time.Time `json:"created_at" form:"created_at" binding:"created_at"`
	UpdatedAt time.Time `json:"updated_at" form:"updated_at" binding:"updated_at"`
	DeletedAt time.Time `json:"deleted_at" form:"deleted_at" binding:"deleted_at"`
	Name      string    `json:"name" form:"name" binding:"name"` // 文件名
	Url       string    `json:"url" form:"url" binding:"url"`    // 文件地址
	Tag       string    `json:"tag" form:"tag" binding:"tag"`    // 文件标签
	Key       string    `json:"key" form:"key" binding:"key"`    // 编号

}

// 注意:这是 FileUploadAndDownload 的私有dao对象
type fileUploadAndDownloadDao struct {
	Obj    FileUploadAndDownload
	Insert func(arg FileUploadAndDownload) int                   //插入一条记录
	Update func(arg FileUploadAndDownload) int                   //更新一条记录
	Delete func(arg FileUploadAndDownload) int                   //删除一条记录
	Select func(arg FileUploadAndDownload) FileUploadAndDownload //获取一条记录
}
